package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;

/**
 * @Author: bowen
 * @Date: 2019/7/16 16:06
 * @Description:
 */
public interface OrderSettingDao {
	long findCountByOrderDate(Date orderDate);
	void update(OrderSetting orderSetting);
	void add(OrderSetting orderSetting);

	List<OrderSetting> getOrdersettingData(String begin, String end);

	OrderSetting findByOrderDate(String orderDate);

	void editReservationsByOrderDate(OrderSetting orderSetting);

	/**
	 * 定时清理预约设置数据
	 */
	void clearOSAtOneTime();

	OrderSetting selectOrderSettingByVersion(OrderSetting orderSetting);
}
